hackerrank java int to string problem solution